﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SkillifyMaster.master" AutoEventWireup="true" CodeFile="CreateTestPageOne.aspx.cs" Inherits="CreateTestPageOne" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        
        {
        }
        .style3
        {
            height: 36px;
        }
        .style4
        {
            height: 38px;
        }
        .style5
        {
            height: 34px;
        }
        .style7
        {
            height: 34px;
            width: 192px;
        }
        .style8
        {
        }
        .style10
        {
            height: 34px;
            width: 143px;
        }
        .style11
        {
            width: 143px;
        }
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table class="style1">
        <tr>
            <td align="left" class="style2">
                <h2><asp:Label ID="lablCreateTest" runat="server" Text="Create test"></asp:Label></h2>
            </td>

            <td align="right">
                <h2><asp:Label ID="lablSubTopicSel" runat="server" Text="Subject and Topic Selection"></asp:Label></h2>
            </td>
        </tr>

        <tr>
            <td class="style2" colspan="2">
                <table align="left" cellspacing="2" style="border: 4px outset orange;" width="100%">
                  <tr>
                        <td class="style3" colspan="3">
                            <asp:Label ID="lablTestName" runat="server" Text="Test Name"></asp:Label>
                        &nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:TextBox ID="txtTestName" runat="server" AutoPostBack="True" 
                                ontextchanged="txtTestName_TextChanged" Width="250px"></asp:TextBox>
                        &nbsp;&nbsp;&nbsp;
                            <asp:RequiredFieldValidator ID="reqFieldTest" runat="server" 
                                ControlToValidate="txtTestName" ErrorMessage="Please enter test Name" 
                                ForeColor="Red">*</asp:RequiredFieldValidator>
                        &nbsp;
                            <asp:Label ID="lablErrorTestName" runat="server" ForeColor="#CC0000"></asp:Label>
                        </td>
                </tr> 

                <tr>
                <td class="style4" colspan="3">
                    <asp:Label ID="lablSub" runat="server" Text="Subject"></asp:Label>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:DropDownList ID="ddlSub" runat="server" Width="260px" AutoPostBack="True" 
                        onselectedindexchanged="ddlSub_SelectedIndexChanged">
                    </asp:DropDownList>
                    &nbsp;
                    <asp:CompareValidator ID="CompDDl" runat="server" 
                        ControlToValidate="ddlSub" ErrorMessage="Please select  one topic" 
                        ForeColor="Red" Operator="NotEqual" ValueToCompare="--Select One--">*</asp:CompareValidator>
                </td>
            </tr>


            <tr>
     <td class="style7">Topics Available</td>
     <td class="style10"></td>
     <td class="style5">Topics Selected</td>
     </tr>
     <tr>
     <td rowspan="2" class="style8">

         <asp:ListBox ID="lblTopicsAvail" runat="server" Width="190px" 
             Height="200px"></asp:ListBox>

     </td>
       <td valign="bottom" align="center" class="style11">

           &nbsp;<asp:Button ID="btnAdd" runat="server" Text=">>" BackColor="#E49642" 
               BorderColor="#CC7A24" ForeColor="White" onclick="btnAdd_Click" 
               CausesValidation="False" />

     </td>
       <td rowspan="2">

           <asp:ListBox ID="lblTopicSelect" runat="server" Width="190px" Height="200px"></asp:ListBox>

     </td>
     </tr>

      <tr>
    <td colspan="2" valign="top">
  <br />
           &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
           <asp:Button ID="btnRemove" runat="server" Text="<<" BackColor="#E49642" 
               BorderColor="#CC7A24" ForeColor="White" onclick="btnRemove_Click" 
            CausesValidation="False" />

    <br />
    </td>
    </tr>
       <%-- <tr>
                <td rowspan="3" valign="top">
                    <asp:Label ID="lablTopAvail" runat="server" Text="Topics Available"></asp:Label>
                    <br />
                    <br />
                    <asp:ListBox ID="lblTopicsAvail" runat="server" Width="151px"></asp:ListBox>
                </td>
                <td>
                    &nbsp;&nbsp;&nbsp;&nbsp; </td>
                <td rowspan="3" valign="top">
                    <asp:Label ID="lablTopSelect" runat="server" Text="Topics Selected"></asp:Label>
                    <br />
                    <br />
                    <asp:ListBox ID="lblTopicSelect" runat="server" Width="151px"></asp:ListBox>
                &nbsp;</td>
            </tr>

        <tr>
                <td>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Button ID="btnAdd" runat="server" Text="&gt;&gt;" CausesValidation="False" 
                        onclick="btnAdd_Click" />
                </td>
            </tr>

        <tr>
                <td>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Button ID="btnRemove" runat="server" Text="&lt;&lt;" 
                        CausesValidation="False" onclick="btnRemove_Click" />
                </td>
            </tr>--%>

        <tr>
                <td colspan="3">
                    <b><asp:Label ID="lablSelQues" runat="server"
                        Text="Who Will Select Question?"></asp:Label></b>
                    <br />
                    <br />
                    <asp:RadioButton ID="rdoManualSelect" runat="server" GroupName="g1" 
                        Text="I Will Select  Question" AutoPostBack="True" Checked="True" 
                        oncheckedchanged="rdoManualSelect_CheckedChanged" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:RadioButton ID="rdoAutoSelect" runat="server" GroupName="g1" 
                        Text="Let App Select Question" AutoPostBack="True" 
                        oncheckedchanged="rdoAutoSelect_CheckedChanged" />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                </td>
            </tr>

        <tr>
                <td class="style8">
                    <b><asp:Label ID="lablRef" runat="server" Text="Reference Library"></asp:Label></b>
                </td>
                <td colspan="2">
                    <asp:GridView ID="gvLibrary" runat="server"
                    BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px" 
            CellPadding="2" ForeColor="Black" GridLines="None" AllowPaging="True" >
                <AlternatingRowStyle BackColor="PaleGoldenrod" />
                <EditRowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            <EmptyDataRowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
         <FooterStyle BackColor="Tan" />
            <HeaderStyle BackColor="#CB6811" Font-Bold="True" ForeColor="White" 
                            HorizontalAlign="Center" />
            <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" 
                HorizontalAlign="Center" />
            <RowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            <SelectedRowStyle BackColor="#E49642" ForeColor="GhostWhite" />
            <SortedAscendingCellStyle BackColor="#FAFAE7" />
            <SortedAscendingHeaderStyle BackColor="#DAC09E" />
            <SortedDescendingCellStyle BackColor="#E1DB9C" />
            <SortedDescendingHeaderStyle BackColor="#C2A47B" />
            </asp:GridView>
                </td>
            </tr>

        <tr>
                <td colspan="3">
                    <b><asp:Label ID="lablDuration" runat="server" Text="Duration In Minutes"></asp:Label></b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:TextBox ID="txtDuration" runat="server"></asp:TextBox>
                &nbsp;
                    <asp:RequiredFieldValidator ID="reqValDuration" runat="server" 
                        ControlToValidate="txtDuration" ErrorMessage="Please Enter Duration" 
                        ForeColor="Red">*</asp:RequiredFieldValidator>
                </td>
                
                    
                
            </tr>

        

        <tr>
                <td colspan="3">
                     <table>
                    <tr>
                <td>
                    <b><asp:Label ID="lablNoOfQuestion" runat="server" Text="No Of Question" 
                        Visible="False"></asp:Label></b>
                </td>
                <td>
                    <asp:TextBox ID="txtNoOfQuestion" runat="server"  
                        Visible="False"></asp:TextBox>
                </td>
                <td>
                    </td>
            </tr>

                     <tr>
                <td>
                    <b><asp:Label ID="lablPattern" runat="server" Text="Pattern" Visible="False"></asp:Label></b>
                </td>
                <td>
                    </td>
                <td>
                    </td>
            </tr>

                     <tr>
                <td>
                    <b><asp:Label ID="lablHigh" runat="server" Text="No Of High Question" 
                        Visible="False"></asp:Label></b>
                </td>
                <td>
                    <asp:TextBox ID="txtHigh" runat="server" Visible="False"></asp:TextBox>
                </td>
                <td>
                &nbsp;&nbsp;
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                </td>
            </tr>

                     <tr>
                <td>
                    <b><asp:Label ID="lablMedium" runat="server" Text="No Of Medium Question" 
                        Visible="False"></asp:Label></b>
                </td>
                <td>
                    <asp:TextBox ID="txtMedium" runat="server" Visible="False"></asp:TextBox>
                </td>
                <td>
                </td>
            </tr>

                     <tr>
                <td>
                    <b><asp:Label ID="lablLow" runat="server" Text="No Of Low Question" 
                        Visible="False"></asp:Label></b>
                </td>
                <td>
                    <asp:TextBox ID="txtLow" runat="server" Visible="False"></asp:TextBox>
                </td>
                <td>
                </td>
            </tr>

                     <tr>
                <td>
                    <b><asp:Label ID="lablCutoff" runat="server" Text="CuttOff" Visible="False"></asp:Label></b>
                </td>
                <td>
                    <asp:TextBox ID="txtCuttOff" runat="server" Visible="False"></asp:TextBox>
                </td>
                <td>
                    </td>
            </tr>
                </table>
                </td>
            </tr>

        <tr>
                <td>
                    &nbsp;</td>
                <td colspan="2">
                    <asp:Label ID="lablError" runat="server" ForeColor="Red"></asp:Label>
                </td>
            </tr>

        <tr>
                <td>
                    &nbsp;</td>
                <td  colspan="2">
                    <asp:Button ID="btnClear" runat="server" Text="Clear" CausesValidation="False" 
                        onclick="btnClear_Click" BackColor="#E49642" BorderColor="#CC7A24" 
                        ForeColor="White" />
&nbsp;&nbsp; &nbsp;
                    <asp:Button ID="btnNext" runat="server" Text="Next" onclick="btnNext_Click" 
                        Width="50px" BackColor="#E49642" BorderColor="#CC7A24" ForeColor="White" />
                </td>
            </tr>
                 
                </table>
            </td>

        </tr>

        
    </table>
</asp:Content>

